package com.sbl.bajw.pc.service;

import java.util.HashMap;
import java.util.List;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import com.sbl.bajw.mapper.SignTModelDao;
import com.sbl.bajw.pc.model.SignTModel;
import com.sbl.bajw.util.LogUtil;

@Service
public class SignTModelService {

	@Resource
	private SignTModelDao dao;

	static Logger log;
	
	static{
		log = LogUtil.getLogger("SignTModel");
	}
	public void insert(SignTModel model){
		dao.insert(model);
	}
	
	public List<HashMap<String, Object>> getModelList(HashMap<String, Object> parm){
		List<HashMap<String, Object>> list = dao.getModelList(parm);
		log.info(list);
		return list;
	}
	
	public List<HashMap<String, Object>> getSignTModel(HashMap<String, Object> parm){
		List<HashMap<String, Object>> list = dao.getSignTModel(parm);
		return list;
	}
	
	public void deleteById(HashMap<String, Object> parm){
		dao.deleteById(parm);
	}
}
